#ifndef MENUSTATE_H
#define MENUSTATE_H
#include <SFML/Audio.hpp>
#include "Globals.h"
#include "State.h"
#include "Button.h"
#include "GameState.h"
#include "optionsState.h"
#include "StatsState.h"
#include "Settings.h"
#include <iostream>

class MenuState : public sfge::State
{
    public:
        void init();
        void cleanup();

        void handle();
        void update(){}
        void draw();

        void resume();
        void pause(){}

       	static MenuState* Instance(sf::RenderWindow* window, sfge::StateManager* mgr)
       	{
       	    if(menuState == NULL)
                menuState = new MenuState(window, mgr);

            return menuState;
        }

    private:
        MenuState(sf::RenderWindow* window, sfge::StateManager* mgr);
        void clicked(float x, float y);
        void checkButtons(float x, float y);

        sf::Sprite background;
        sf::Sprite cursorSprite;
        Button* playButton;
        Button* optionsButton;
        Button* statsButton;
        Button* quitButton;
        sf::Music loop;

        static MenuState* menuState;
};

#endif // MENUSTATE_H
